package com.zpark.cloud.alibaba.feign.impl;

import com.zpark.cloud.alibaba.entity.Dept;
import com.zpark.cloud.alibaba.feign.IDeptFeign;
import com.zpark.cloud.alibaba.utils.ResponseResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @PackageName: com.zpark.cloud.alibaba.feign.impl
 * @ClassName: DeptFeignImpl
 * @Description:
 * @author: RZS
 * @date: 2023/6/21  15:41
 */
@Component
public class DeptFeignImpl implements IDeptFeign {
    @Override
    public ResponseResult<Dept> findById(Integer id) {
        return new ResponseResult<>(500, "ERROR, 根据id查询数据失败", null);
    }

    @Override
    public ResponseResult<List<Dept>> findAll() {
        return new ResponseResult<>(500, "ERROR, 查询所有数据失败", null);
    }
}
